package com.bgs.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgs.entity.User;
import com.bgs.vo.RecyclingorderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RecyclingorderMapper extends BaseMapper {

    List<RecyclingorderVo> getRecyclingorder(@Param("riderId") Integer riderId,@Param("roType") Integer roType,@Param("id") Integer id );

    List<RecyclingorderVo> getRecyclingorderRoId(Integer roId);

    Integer uptRecyclingorderRoId(Integer roId, Integer roType,Integer riderId);

    User getUserRoId(Integer riderId);

    List<RecyclingorderVo> getRecyclingorderComplete(Integer riderId);

    List<RecyclingorderVo> getRecyclingorderCompleted(Integer riderId);

    Integer getRedisRecyclingorder(Integer id);

    Integer getRiderDistance(Double distance,Integer roId,Integer riderId);
}
